package cn.thornbird.orgsync.model.feishu;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class TenantInfo extends Response {

    @JsonProperty("data")
    private TenantData data;


    @Data
    public static class TenantData {

        @JsonProperty("tenant")
        private Tenant tenant;

    }


    @Data
    public static class Tenant {

        @JsonProperty("name")
        private String name;

        @JsonProperty("display_id")
        private String displayId;

        /**
         * 个人版/团队版标志: 0-团队版, 2-个人版
         */
        @JsonProperty("tenant_tag")
        private Integer tenantTag;

        @JsonProperty("tenant_key")
        private String tenantKey;

        @JsonProperty("avatar")
        private Avatar avatar;

        @JsonProperty("domain")
        private String domain;

    }


    @Data
    public static class Avatar {

        @JsonProperty("avatar_origin")
        private String avatarOrigin;

        @JsonProperty("avatar_72")
        private String avatar72;

        @JsonProperty("avatar_240")
        private String avatar240;

        @JsonProperty("avatar_640")
        private String avatar640;

    }

}
